{template /common/header}

	<!-- S carousel -->
	<div class="carousel">
		<div class="swiper-container swiper1">
	        <div class="swiper-wrapper">

    {hd:focus action="lists" num="5" order="sort ASC, id DESC" }
    {loop $data $r}
    {if $r[pic]}
	            <div class="swiper-slide">
					<img src="{$r[pic]}" alt="{$r[url]}">
	            </div>


    {/if}
    {/loop}
    {/hd}


	        </div>
	        <!-- Add Pagination -->
	        <div class="swiper-pagination"></div>
	    </div>
	</div>
	<!-- E carousel -->
	<!-- S 导航 -->
	<ul class="jason_subNav flex flex-pack-justify row_wrap">
		<li>
			<a href="/?a=ranking">
				<dl>
					<dt><img src="{THEME_PATH}images/icon1.png" alt="排行榜" width="35" height="35"></dt>
					<dd>排行榜</dd>
				</dl>
			</a>
		</li>
		<li>
			<a href="javascript:void(0);" onclick="tishi();">
				<dl>
					<dt><img src="{THEME_PATH}images/icon2.png" alt="王国生活" width="35" height="35"></dt>
					<dd>王国生活</dd>
				</dl>
			</a>
		</li>
		<li>
			<a href="javascript:void(0);" onclick="tishi();">
				<dl>
					<dt><img src="{THEME_PATH}images/icon3.png" alt="福利" width="35" height="35"></dt>
					<dd>福利</dd>
				</dl>
			</a>
		</li>
		<li>
			<a href="javascript:void(0);" onclick="tishi();">
				<dl>
					<dt><img src="{THEME_PATH}images/icon4.png" alt="捐赠有礼" width="35" height="35"></dt>
					<dd>捐赠有礼</dd>
				</dl>
			</a>
		</li>
		<li>
			<a href="javascript:void(0);" onclick="tishi();">
				<dl>
					<dt><img src="{THEME_PATH}images/icon5.png" alt="流量计划" width="35" height="35"></dt>
					<dd>流量计划</dd>
				</dl>
			</a>
		</li>
		<li>
			<a href="javascript:void(0);" onclick="tishi();">
				<dl>
					<dt><img src="{THEME_PATH}images/icon6.png" alt="流量宝" width="35" height="35"></dt>
					<dd>流量宝</dd>
				</dl>
			</a>
		</li>
		<li>
			<a href="javascript:void(0);" onclick="tishi();">
				<dl>
					<dt><img src="{THEME_PATH}images/icon7.png" alt="游戏" width="35" height="35"></dt>
					<dd>游戏</dd>
				</dl>
			</a>
		</li>
		<li>
			<a href="javascript:void(0);" onclick="tishi();">
				<dl>
					<dt><img src="{THEME_PATH}images/icon8.png" alt="王国出行" width="35" height="35"></dt>
					<dd>王国出行</dd>
				</dl>
			</a>
		</li>
	</ul>
	<!-- E 导航 -->

	<!-- S 公告 -->
	<div class="jason_notice">
		<div class="jason_notice_head flex flex-pack-justify">
			<h2>公告</h2>
			<a href="/index.php?m=article&c=index&a=lists">MORE</a>
		</div>
		<ul class="jason_notice_content">

    <?php $data = M("article")->where("category_id=7")->order("id desc")->limit("10")->select();?>
    {php $i = 0;}
    {loop $data $r}
    {php $i++;}

			
			<li>
				<a href="{U('Article/Index/detail', array('id'=> $r[id]))}">
					<dl>
						<dt class="title">{msubstr($r[title],27)}</dt>
						<dd class="text">{msubstr(ClearHtml($r[content]),27)}</dd>
						<dd class="time"><?php echo date("y-m-d h:i:s",$r[create_time])?></dd>
					</dl>
				</a>
			</li>
    {/loop}




		</ul>
	</div>
	<!-- E 公告 -->



	<script src="{THEME_PATH}js/swiper.min.js"></script>
	<script>
		var swiper = new Swiper('.swiper1', {
	        pagination: '.swiper-pagination',
	        paginationClickable: true,
	        loop:true,
	        autoplay:3000,
	    });
	  //   function tishi(){
			// layer.open({
			// 	content: '开发中，敬请期待'
			// 	,btn: '确定'
			// 	,shadeClose:false
			// });
	  //   	// alert("sdf");
	  //   	// hd_alert('开发中，敬请期待','');
	  //   }

	    function tishi(){
	    	hd_alert1('开发中，敬请期待');
	    }


	</script>



<!--{subtemplate common/footer}-->